package org.jackysoft.struts2.core;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.entity.nosql.SecurityRoleNotify;
import org.jackysoft.service.SecurityRoleNotifyService;
import org.jackysoft.struts2.UtilsCRUDAction;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;


@Namespace("/security/notify")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class SecurityNotifyAction extends UtilsCRUDAction<SecurityRoleNotify> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 9057686893196523217L;
	private SecurityRoleNotifyService notifyService;
	private Boolean done;
	private SecurityRoleNotify bean;
	
	public String donesecuevent() throws Exception {
		notifyService.doneEvent(bean.getId());
		return "donesecuevent";
	}

	public String secueventdata() throws Exception {
		getJson();
		return JQGRID;
	}

	public SecurityRoleNotifyService getNotifyService() {
		return notifyService;
	}

	@Resource
	public void setNotifyService(SecurityRoleNotifyService notifyService) {
		this.notifyService = notifyService;
		this.setDataProvider(notifyService);
	}

	public Boolean getDone() {
		return done;
	}

	public void setDone(Boolean done) {
		this.done = done;
	}

	public SecurityRoleNotify getBean() {
		return bean;
	}

	public void setBean(SecurityRoleNotify bean) {
		this.bean = bean;
	}

}
